import request from '@/utils/request'

export function deleteApi(param) {
  return request({
    url: 'rest/formData/delete',
    method: 'post',
    data: param
  })
}

export function get(param) {
  return request({
    url: 'rest/formData/get',
    method: 'post',
    data: param
  })
}

export function list(param) {
  return request({
    url: 'rest/formData/list',
    method: 'post',
    data: param
  })
}

export function save(param) {
  return request({
    url: 'rest/formData/save',
    method: 'post',
    data: param
  })
}

// 获取待办事项列表
export function processBodyList(param) {
  return request({
    url: 'rest/formData/processBodyList',
    method: 'post',
    data: param
  })
}

// 获取待办事项详情
export function getFormData(param) {
  return request({
    url: 'rest/formData/getFormData',
    method: 'post',
    data: param
  })
}

// 我的流程
export function processList(param) {
  return request({
    url: 'rest/formData/processList',
    method: 'post',
    data: param
  })
}

// 任务办理
export function dealTask(param) {
  return request({
    url: 'rest/formData/dealTask',
    method: 'post',
    data: param
  })
}

// 已办事项
export function alreadyMatterList(param) {
  return request({
    url: 'rest/formData/alreadyMatterList',
    method: 'post',
    data: param
  })
}
